package com.raptor.rabbitmq.product;


import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "shihang.rabbitmq.producer")
public class RabbitMQProductProperties {


//    spring.rabbitmq.addresses=192.168.0.113:5672
//    spring.rabbitmq.username=guest
//    spring.rabbitmq.password=guest
//    spring.rabbitmq.virtual-host=/
//    spring.rabbitmq.connection-timeout=15000
//
//            # 开启confirm机制
//    spring.rabbitmq.publisher-confirms=true
//            # 开启return模式
//    spring.rabbitmq.publisher-returns=true
//            # 配合return机制使用，表示接收路由不可达的消息
//    spring.rabbitmq.template.mandatory=true

    private String host;
    private int port;
    private String username;
    private String password;


    private String exchange;


    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
